package com.xyq.system.domain.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xyq.common.core.domain.BaseEntity;
import lombok.Data;

@Data
@TableName("tb_question")
public class Question extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)   //也使用雪花算法获取id
    private Long questionId ;

    private String title ;

    private Integer difficulty ; //  1.简单 , 2.中等 , 3.困难'

    private Integer timeLimit ; // 时间限制
    private Integer spaceLimit ; // 空间限制

    private String content ; //题目内容

    private String questionCase ; // 题目示例

    private String defaultCode ; // 默认代码块
    private String mainFuc ;  // 默认main方法

}
